package anveshitha.utils;

import java.io.File;
import java.util.ArrayList;
import java.util.Iterator;

import anveshitha.utils.FileUtils;

import junit.framework.TestCase;

public class FileUtilsTest extends TestCase {
	
	protected void setUp() throws Exception {
		super.setUp();		
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}
	
	public void testListFiles() {
		
		try
		{
			ArrayList<File> al = FileUtils.listFiles(new File("src"), "java", true);
			for(Iterator<File> i = al.iterator();i.hasNext();)
				System.out.println(i.next().getName());
		}catch(Exception e)
		{
			fail("Exception!!");
		}

	}

}
